<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="add" method="post">
  <input type="hidden" th:value="${b.id}" name="id">
  书名：<input type="text" name="name"  th:value="${b.name}"><br>
  价格：<input type="text" name="price" th:value="${b.price}"><br>
  类目：<input type="text" name="category" th:value="${b.category}"><br>
  库存：<input type="text" name="pnum" th:value="${b.pnum}"><br>
  图片路径：<input type="text" name="imgurl" th:value="${b.imgurl}"><br>
  说明：<input type="text" name="description" th:value="${b.description}"><br>
  作者：<input type="text" name="author" th:value="${b.author}"><br>
  已售：<input type="text" name="sales" th:value="${b.sales}"><br>
  <input type="submit" value="提交">
</form>
</body>
</html>